reverse string algorithm

visit shbcf.ru